package com.ruoyi.proSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.proSystem.mapper.ProExpressageMapper;
import com.ruoyi.proSystem.domain.ProExpressage;
import com.ruoyi.proSystem.service.IProExpressageService;

/**
 * 物流设置Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-28
 */
@Service
public class ProExpressageServiceImpl implements IProExpressageService
{
    @Autowired
    private ProExpressageMapper proExpressageMapper;

    /**
     * 查询物流设置
     *
     * @param id 物流设置主键
     * @return 物流设置
     */
    @Override
    public ProExpressage selectProExpressageById(Integer id)
    {
        return proExpressageMapper.selectProExpressageById(id);
    }

    /**
     * 查询物流设置列表
     *
     * @param proExpressage 物流设置
     * @return 物流设置
     */
    @Override
    public List<ProExpressage> selectProExpressageList(ProExpressage proExpressage)
    {
        return proExpressageMapper.selectProExpressageList(proExpressage);
    }

    /**
     * 新增物流设置
     *
     * @param proExpressage 物流设置
     * @return 结果
     */
    @Override
    public int insertProExpressage(ProExpressage proExpressage)
    {
        return proExpressageMapper.insertProExpressage(proExpressage);
    }

    /**
     * 修改物流设置
     *
     * @param proExpressage 物流设置
     * @return 结果
     */
    @Override
    public int updateProExpressage(ProExpressage proExpressage)
    {
        return proExpressageMapper.updateProExpressage(proExpressage);
    }

    /**
     * 批量删除物流设置
     *
     * @param ids 需要删除的物流设置主键
     * @return 结果
     */
    @Override
    public int deleteProExpressageByIds(Integer[] ids)
    {
        return proExpressageMapper.deleteProExpressageByIds(ids);
    }

    /**
     * 删除物流设置信息
     *
     * @param id 物流设置主键
     * @return 结果
     */
    @Override
    public int deleteProExpressageById(Integer id)
    {
        return proExpressageMapper.deleteProExpressageById(id);
    }
}
